import React from "react"
import { Route, Routes } from "react-router-dom"
import Home from "./components/Home"
import Admin from "./components/Admin"
import Editor from "./components/Editor"
import Cloth from "./components/Cloth"
import User from "./components/User"
import Page404 from "./Page404"

import "./App.scss"
import "../node_modules/antd/dist/antd.less"

function App() {
    return (
        <div className="App">
            <Routes>
                <Route path="/" element={<Home />}></Route>
                <Route path="*" element={<Page404 />}></Route>
                <Route path="admin/*" element={<Admin />}></Route>
                <Route path="editor" element={<Editor />}></Route>
                <Route path="clothes" element={<Cloth />}></Route>
                <Route path="user/*" element={<User />}></Route>
            </Routes>
        </div>
    )
}

export default App
